<template>
  <div class="css-box">
    <div class="div-left"></div>
    <div class="div-right">
      <div class="top"></div>
      <div class="bottom"></div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'cssFlex',
  components: {},
  data: () => {
    return {};
  },
  created() {},
  methods: {},
};
</script>

<style>
.css-box {
  width: 100%;
  height: 100vh;
  display: flex;
}
.div-left {
  width: 200px;
  height: 100%;
  background-color: red;
}
.div-right {
  flex: 1; /** 1 1 0 */
  display: flex;
  flex-direction: column;
}
.div-right .top {
  width: 100%;
  height: 84px;
  background-color: yellow;
}
.div-right .bottom {
  flex: 1; /** 1 1 0 */
  background-color: blue;
}
</style>
